




/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Laurens
 */
public class renameTest
{
    int a;

    public static void main(String[] args) throws Exception
    {
        int g = 4;
        System.out.println("Main1");
        main1();
        System.out.println("Main2");
        main2();
        System.out.println("Main3");
        main3(6);
        System.out.println("Main4");
        main4(g);
    }

    public renameTest()
    {

    }

    public void main8(int h)
    {
        a = h;
        a=h;
        a =h;
        a= h;
        a =  h;
    }

    public static void main1()
    {
        int w = 0;
        int car = 9;
        w += w;
        w++;
        System.out.println(w);
        --w;
        System.out.println(w);
    }

    public static void main2()
    {
        String h = "Sjas";
        if(h.contains("S"))
        {
            System.out.println(h.charAt(2));
        }
        System.out.println(h);
    }

    public static void main3(int h)
    {
        String[] said = new String[3];
        said[0] = "sad";
        said[1] = "bad";
        said[2] = "dad";
        System.out.println(said[0]);
        System.out.println(said.length);
    }

    public static void main4(int r)
    {
        String[] ad = new String[r];
        ad[0] = "1";
        ad[1] = "2";
        ad[2] = "3";
        ad[3] = "4";
        for(int q = 0; q < ad.length; q++)
        {
            System.out.println(ad[q]);
        }
    }

    public int getA()
    {
        return a;
    }
}